Integration Techniques: Partial Fractions and Special Forms
Integration by Partial Fractions: Method for Rational Functions
Integration by Partial Fractions is a powerful technique used to integrate rational functions, which are functions expressed as the ratio of two polynomials, say $\frac{P(x)}{Q(x)}$. The core idea is to decompose the rational function into a sum of simpler fractions, called partial fractions, whose integrals are known or easier to find.
The method primarily applies to proper rational functions, where the degree of the numerator polynomial $P(x)$ is strictly less than the degree of the denominator polynomial $Q(x)$ (i.e., degree$(P(x)) <$ degree$(Q(x))$).
If the given rational function is improper (degree$(P(x)) \ge$ degree$(Q(x))$), the first step is to perform polynomial long division. This divides the improper rational function into a polynomial part and a remainder part, where the remainder divided by the original denominator is a proper rational function:
$\frac{P(x)}{Q(x)} = \text{Quotient Polynomial}(x) + \frac{\text{Remainder Polynomial}(x)}{Q(x)}$
The integral of the original function is then the integral of the quotient polynomial (which is straightforward) plus the integral of the proper rational function part. We apply the partial fraction decomposition method to this proper rational function $\frac{\text{Remainder}(x)}{Q(x)}$.
Steps for Partial Fraction Decomposition
To decompose a proper rational function $\frac{P(x)}{Q(x)}$ into partial fractions:
- Factor the Denominator: Completely factor the denominator polynomial $Q(x)$ into a product of linear factors of the form $(ax+b)^m$ and irreducible quadratic factors of the form $(ax^2+bx+c)^n$, where $b^2-4ac < 0$ for the quadratic factors (meaning they have no real roots).
- Set Up the Partial Fraction Form: Write down the template for the partial fraction decomposition based on the factors of $Q(x)$. Each type of factor contributes specific terms to the decomposition:
- For each distinct linear factor $(ax+b)$ in $Q(x)$: Include a term of the form $\frac{A}{ax+b}$, where $A$ is a constant to be determined.
- For each repeated linear factor $(ax+b)^k$ in $Q(x)$, where $k \ge 2$: Include a sum of $k$ terms of the form $\frac{A_1}{ax+b} + \frac{A_2}{(ax+b)^2} + \dots + \frac{A_k}{(ax+b)^k}$, where $A_1, A_2, \dots, A_k$ are constants to be determined.
- For each distinct irreducible quadratic factor $(ax^2+bx+c)$ in $Q(x)$: Include a term of the form $\frac{Ax+B}{ax^2+bx+c}$, where $A$ and $B$ are constants to be determined.
- For each repeated irreducible quadratic factor $(ax^2+bx+c)^k$ in $Q(x)$, where $k \ge 2$: Include a sum of $k$ terms of the form $\frac{A_1x+B_1}{ax^2+bx+c} + \frac{A_2x+B_2}{(ax^2+bx+c)^2} + \dots + \frac{A_kx+B_k}{(ax^2+bx+c)^k}$, where $A_1, B_1, \dots, A_k, B_k$ are constants to be determined.
- Solve for the Unknown Coefficients: The goal is to find the values of the constants (A, B, $A_i$, $B_i$, etc.) in the partial fraction form.
- Start by multiplying both sides of the equation from Step 2 by the original denominator $Q(x)$. This clears the denominators, leaving an equation where the original numerator $P(x)$ (or the remainder polynomial) is equal to a sum of polynomials involving the unknown coefficients.
- Two common methods to solve for the coefficients are:
- Equating Coefficients: Expand the right side of the equation and collect terms by powers of $x$. Equate the coefficients of corresponding powers of $x$ on both sides of the equation. This results in a system of linear equations in terms of the unknown constants. Solve this system.
- Substituting Convenient Values: Substitute specific, convenient values of $x$ into the equation obtained after clearing the denominators. The most convenient values are often the real roots of the denominator factors (if any), as these values will make certain terms zero, simplifying the equation and often directly yielding the value of a coefficient. This is sometimes called the Heaviside Cover-Up Method for distinct linear factors.
- A combination of these methods is often the most efficient way to solve for all coefficients.
Once the constants are found, the original rational function is expressed as a sum of simpler partial fractions. The integration is then performed term by term.
Integrating the Partial Fractions
After decomposing the rational function, integrate each partial fraction term. The resulting integrals typically fall into forms that can be solved using standard formulas or simple substitutions:
- $\int \frac{A}{ax+b} dx$: Use substitution $u = ax+b$, $du = a dx$. $\int \frac{A}{u} \frac{du}{a} = \frac{A}{a} \int \frac{1}{u} du = \frac{A}{a} \ln|u| + C = \frac{A}{a} \ln|ax+b| + C$.
$\int \frac{A}{ax+b} dx = \frac{A}{a} \ln|ax+b| + C$
- $\int \frac{A}{(ax+b)^k} dx$ (for $k \ge 2$): Use substitution $u = ax+b$, $du = a dx$. $\int \frac{A}{u^k} \frac{du}{a} = \frac{A}{a} \int u^{-k} du = \frac{A}{a} \frac{u^{-k+1}}{-k+1} + C = \frac{A}{a(1-k)u^{k-1}} + C = \frac{A}{a(1-k)(ax+b)^{k-1}} + C$.
- $\int \frac{Ax+B}{ax^2+bx+c} dx$ (for irreducible quadratic $ax^2+bx+c$): This integral often requires algebraic manipulation. You might split the numerator into two parts: one that is a multiple of the derivative of the denominator ($2ax+b$) and a remaining constant term. Completing the square in the denominator might also be needed to relate it to the $\int \frac{1}{u^2+k^2} du$ form (leading to arctangent).
$\int \frac{2ax+b}{ax^2+bx+c} dx = \ln|ax^2+bx+c| + C$ (by substitution $u=ax^2+bx+c$).
$\int \frac{k}{u^2+p^2} du = \frac{k}{p} \arctan\left(\frac{u}{p}\right) + C$.
Finally, combine the integral of the polynomial part (if any) with the integrals of all the partial fractions and add a single constant of integration $C$ to the total result.
Example 1. Evaluate $\int \frac{5x - 3}{x^2 - 2x - 3} dx$.
Answer:
The integrand is $R(x) = \frac{5x - 3}{x^2 - 2x - 3}$. The degree of the numerator (1) is less than the degree of the denominator (2), so this is a proper rational function.
Step 1: Factor the Denominator.
Factor the quadratic denominator $Q(x) = x^2 - 2x - 3$. We look for two numbers that multiply to -3 and add to -2. These are -3 and 1.
"$x^2 - 2x - 3 = (x - 3)(x + 1)$"
The factors are distinct linear factors.
Step 2: Set Up the Partial Fraction Form.
For distinct linear factors $(x-3)$ and $(x+1)$, the partial fraction decomposition has the form:
"$\frac{5x - 3}{(x - 3)(x + 1)} = \frac{A}{x - 3} + \frac{B}{x + 1}$"
where $A$ and $B$ are constants to be determined.
Step 3: Solve for the Unknown Coefficients $A$ and $B$.
Multiply both sides of the equation by the common denominator $(x-3)(x+1)$ to clear the denominators:
"$5x - 3 = A(x + 1) + B(x - 3)$"
[Clear denominators]
This equation must hold for all values of $x$ for which the original expression is defined (i.e., $x \neq 3, x \neq -1$). Since both sides are polynomials, the equation must hold for all real values of $x$.
We can use the method of substituting convenient values for $x$. The roots of the denominator factors ($x=3$ and $x=-1$) are the most convenient values.
- Substitute $x = 3$: This value makes the term with $B$ zero.
"$5(3) - 3 = A(3 + 1) + B(3 - 3)$"
[Substitute $x=3$]
"$15 - 3 = A(4) + B(0)$"
"$12 = 4A$"
"$A = 3$"
- Substitute $x = -1$: This value makes the term with $A$ zero.
"$5(-1) - 3 = A(-1 + 1) + B(-1 - 3)$"
[Substitute $x=-1$]
"$-5 - 3 = A(0) + B(-4)$"
"$-8 = -4B$"
"$B = 2$"
So, the partial fraction decomposition is:
"$\frac{5x - 3}{(x - 3)(x + 1)} = \frac{3}{x - 3} + \frac{2}{x + 1}$"
Step 4: Integrate the Partial Fractions.
Replace the original integral with the integral of its partial fraction decomposition:
"$\int \frac{5x - 3}{x^2 - 2x - 3} dx = \int \left( \frac{3}{x - 3} + \frac{2}{x + 1} \right) dx$"
Using the Sum Rule and Constant Multiple Rule for integration:
$= \int \frac{3}{x - 3} dx + \int \frac{2}{x + 1} dx$"
$= 3 \int \frac{1}{x - 3} dx + 2 \int \frac{1}{x + 1} dx$"
Evaluate the two integrals. Use the standard formula $\int \frac{1}{ax+b} dx = \frac{1}{a} \ln|ax+b| + C$, or use substitution $u = x-3$ ($du=dx$) for the first integral and $v=x+1$ ($dv=dx$) for the second integral, along with $\int \frac{1}{w} dw = \ln|w| + C$.
$\int \frac{1}{x - 3} dx = \ln|x - 3| + C_1$
$\int \frac{1}{x + 1} dx = \ln|x + 1| + C_2$
Substitute these results back and combine the constants into a single $C$:
$= 3 (\ln|x - 3|) + 2 (\ln|x + 1|) + C$"
The indefinite integral is $3 \ln|x - 3| + 2 \ln|x + 1| + C$.
We can optionally use logarithm properties to combine the terms: $3 \ln|x - 3| + 2 \ln|x + 1| = \ln|x - 3|^3 + \ln|x + 1|^2 = \ln(|(x - 3)^3 (x + 1)^2|)$. So the result could also be written as $\ln(|(x - 3)^3 (x + 1)^2|) + C$.
Integration of Rational Functions of $\sin x$ and $\cos x$
Integrals involving rational functions of trigonometric terms, specifically $\sin x$ and $\cos x$, i.e., integrals of the form $\int R(\sin x, \cos x) dx$, where $R$ is a rational function (a ratio of polynomials) of $\sin x$ and $\cos x$, can often be transformed into integrals of rational functions of a single new variable $t$ using a universal substitution. This technique is called the Weierstrass substitution or the tangent half-angle substitution.
Once transformed into a rational function of $t$, the integral can then (theoretically) be solved using the method of partial fractions.
The Weierstrass Substitution
The standard substitution is based on the tangent of half the angle:
$t = \tan(x/2)$
This substitution allows us to express $\sin x$, $\cos x$, and the differential $dx$ entirely in terms of $t$ and $dt$.
- Finding $dx$ in terms of $dt$:
From $t = \tan(x/2)$, we can solve for $x$. If $t = \tan(x/2)$, then $\frac{x}{2}$ is the angle whose tangent is $t$. This is the arctangent of $t$.
$\frac{x}{2} = \arctan t$
[Taking arctan of both sides]
Multiply by 2 to solve for $x$:
"$x = 2 \arctan t$"
Now, differentiate $x$ with respect to $t$:
"$\frac{dx}{dt} = \frac{d}{dt}(2 \arctan t) = 2 \cdot \frac{1}{1+t^2}$"
[Using standard derivative of arctan]
Write this in differential form:
$dx = \frac{2 dt}{1+t^2}$
- Finding $\sin x$ in terms of $t$:
We use the double-angle identity for sine: $\sin x = 2 \sin(x/2) \cos(x/2)$. We need to express $\sin(x/2)$ and $\cos(x/2)$ in terms of $t = \tan(x/2)$.
Consider a right triangle where one of the non-right angles is $x/2$. Since $\tan(x/2) = t = t/1$, we can label the opposite side as $t$ and the adjacent side as 1. By the Pythagorean theorem, the hypotenuse is $\sqrt{t^2 + 1^2} = \sqrt{1+t^2}$.
From this triangle, we can find $\sin(x/2)$ and $\cos(x/2)$:
$\sin(x/2) = \frac{\text{Opposite}}{\text{Hypotenuse}} = \frac{t}{\sqrt{1+t^2}}$
$\cos(x/2) = \frac{\text{Adjacent}}{\text{Hypotenuse}} = \frac{1}{\sqrt{1+t^2}}$
Substitute these into the double-angle identity for $\sin x$:
"$\sin x = 2 \left(\frac{t}{\sqrt{1+t^2}}\right) \left(\frac{1}{\sqrt{1+t^2}}\right) = \frac{2t}{(\sqrt{1+t^2})^2} = \frac{2t}{1+t^2}$"
$\sin x = \frac{2t}{1+t^2}$
- Finding $\cos x$ in terms of $t$:
We use the double-angle identity for cosine: $\cos x = \cos^2(x/2) - \sin^2(x/2)$.
Substitute the expressions for $\sin(x/2)$ and $\cos(x/2)$ from the right triangle:
"$\cos x = \left(\frac{1}{\sqrt{1+t^2}}\right)^2 - \left(\frac{t}{\sqrt{1+t^2}}\right)^2 = \frac{1}{1+t^2} - \frac{t^2}{1+t^2}$"
Combine the terms:
"$= \frac{1-t^2}{1+t^2}$"
$\cos x = \frac{1-t^2}{1+t^2}$
By using the Weierstrass substitution $t = \tan(x/2)$, an integral $\int R(\sin x, \cos x) dx$ can be transformed into an integral of a rational function of $t$ by substituting $dx = \frac{2 dt}{1+t^2}$, $\sin x = \frac{2t}{1+t^2}$, and $\cos x = \frac{1-t^2}{1+t^2}$. The resulting integral $\int R\left(\frac{2t}{1+t^2}, \frac{1-t^2}{1+t^2}\right) \frac{2 dt}{1+t^2}$ is an integral of a rational function of $t$, which can then be solved using techniques like partial fraction decomposition.
Note: While the Weierstrass substitution is universal for rational functions of $\sin x$ and $\cos x$, it often leads to complex rational functions in $t$. Before resorting to it, always check if a simpler substitution (like $u = \sin x$, $u = \cos x$, or $u = \tan x$) is applicable.
Example 1. Evaluate $\int \frac{1}{1 + \cos x} dx$.
Answer:
The integrand is a rational function of $\cos x$. We can attempt the Weierstrass substitution $t = \tan(x/2)$.
Step 1: Apply the Weierstrass Substitution.
Use the formulas derived from the substitution $t = \tan(x/2)$:
"$\cos x = \frac{1-t^2}{1+t^2}$"
"$dx = \frac{2 dt}{1+t^2}$"
Step 2: Substitute into the integral.
Replace $\cos x$ and $dx$ in the integral with their expressions in terms of $t$:
"$\int \frac{1}{1 + \cos x} dx = \int \frac{1}{1 + \left(\frac{1-t^2}{1+t^2}\right)} \cdot \left(\frac{2 dt}{1+t^2}\right)$"
Step 3: Simplify the integrand (rational function of $t$).
Simplify the denominator of the fraction: $1 + \frac{1-t^2}{1+t^2} = \frac{1(1+t^2) + (1-t^2)}{1+t^2} = \frac{1+t^2+1-t^2}{1+t^2} = \frac{2}{1+t^2}$.
The integral becomes:
"$= \int \frac{1}{\frac{2}{1+t^2}} \cdot \left(\frac{2 dt}{1+t^2}\right)$"
Rewrite the first fraction by taking the reciprocal of the denominator:
"$= \int \frac{1+t^2}{2} \cdot \frac{2 dt}{1+t^2}$"
Cancel the common factors $(1+t^2)$ and $2$:
"$= \int \frac{\cancel{1+t^2}}{\cancel{2}} \cdot \frac{\cancel{2} dt}{\cancel{1+t^2}} = \int 1 dt$"
The integral has simplified to a basic form.
Step 4: Integrate with respect to $t$.
"$\int 1 dt = t + C$"
Step 5: Substitute back to the original variable $x$.
Replace $t$ with its original expression in terms of $x$, $t = \tan(x/2)$.
"$= \tan(x/2) + C$"
The indefinite integral is $\tan(x/2) + C$.
Alternative Method (using Trigonometric Identities):
In this specific case, a simpler approach exists using a half-angle identity for cosine: $1 + \cos x = 2 \cos^2(x/2)$.
"$\int \frac{1}{1 + \cos x} dx = \int \frac{1}{2 \cos^2(x/2)} dx$"
Recall that $\frac{1}{\cos^2 \theta} = \sec^2 \theta$. So $\frac{1}{2 \cos^2(x/2)} = \frac{1}{2} \sec^2(x/2)$.
$= \frac{1}{2} \int \sec^2(x/2) dx$"
Now use the substitution method. Let $u = x/2$. Then $du = \frac{1}{2} dx$, which means $dx = 2 du$.
$= \frac{1}{2} \int \sec^2(u) (2 du)$"
[Substitute $u$ and $dx$]
$= \int \sec^2(u) du$"
[Simplify]
This is a standard integral:
$= \tan u + C$"
Substitute back $u = x/2$:
$= \tan(x/2) + C$"
[Substitute back $u=x/2$]
This alternative method yields the same result and is simpler because the trigonometric identity simplifies the integrand before substitution. The Weierstrass substitution is a general tool, but simpler methods should always be sought first.
Standard Evaluation using Specific Formulas (e.g., $\int \frac{dx}{\sqrt{a^2 \pm x^2}}$)
Beyond the basic power rule, trigonometric, and exponential integrals, there are several standard integral forms that commonly appear, particularly those involving square roots of quadratic expressions like $a^2 \pm x^2$ or $x^2 \pm a^2$. These integrals often have standard results that are typically derived using trigonometric substitution, but they are valuable to recognize and use directly.
In the following formulas, $a$ is a positive constant ($a > 0$), and $C$ is the constant of integration. The domains of the results are typically restricted to where the integrand is defined and the result is real-valued.
Standard Integrals involving $\sqrt{a^2 - x^2}$
These forms are related to inverse trigonometric functions.
- $\int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\left(\frac{x}{a}\right) + C$ (for $-a < x < a$)
- $\int \sqrt{a^2 - x^2} dx = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\arcsin\left(\frac{x}{a}\right) + C$ (for $-a \le x \le a$)
(Derived using substitution $x = a \sin \theta$, where $dx = a \cos \theta d\theta$ and $\sqrt{a^2-x^2} = \sqrt{a^2 - a^2\sin^2\theta} = \sqrt{a^2(1-\sin^2\theta)} = \sqrt{a^2 \cos^2\theta} = a|\cos\theta|$. For $x=a\sin\theta$ with $\theta \in [-\pi/2, \pi/2]$, $\cos\theta \ge 0$, so $\sqrt{a^2-x^2}=a\cos\theta$. The integral becomes $\int \frac{a\cos\theta d\theta}{a\cos\theta} = \int d\theta = \theta + C$. Since $x = a\sin\theta$, $\sin\theta = x/a$, so $\theta = \arcsin(x/a)$.)
(This integral can also be derived using the substitution $x=a\sin\theta$ and involves integrating $\cos^2\theta$).
Standard Integrals involving $\sqrt{x^2 + a^2}$
These forms are related to inverse hyperbolic functions or involve logarithms.
- $\int \frac{dx}{\sqrt{x^2 + a^2}} = \ln|x + \sqrt{x^2 + a^2}| + C$ (for all real $x$)
- $\int \sqrt{x^2 + a^2} dx = \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\ln|x + \sqrt{x^2 + a^2}| + C$ (for all real $x$)
(Derived using substitution $x = a \tan \theta$, where $dx = a \sec^2 \theta d\theta$ and $\sqrt{x^2+a^2} = \sqrt{a^2\tan^2\theta + a^2} = \sqrt{a^2(\tan^2\theta+1)} = \sqrt{a^2\sec^2\theta} = a|\sec\theta|$. For $x=a\tan\theta$ with $\theta \in (-\pi/2, \pi/2)$, $\sec\theta > 0$, so $\sqrt{x^2+a^2}=a\sec\theta$. The integral becomes $\int \frac{a\sec^2\theta d\theta}{a\sec\theta} = \int \sec\theta d\theta = \ln|\sec\theta + \tan\theta| + C$. Substituting back $t=\tan(x/2)$ is complex, a simpler way uses a different substitution or relates back to the derivative of $\ln|x+\sqrt{x^2+a^2}|$).
Alternative form using inverse hyperbolic sine: $\text{arsinh}(x/a) + C$.
(Derived using substitution $x=a\tan\theta$).
Standard Integrals involving $\sqrt{x^2 - a^2}$
These forms are also related to inverse hyperbolic functions or involve logarithms.
- $\int \frac{dx}{\sqrt{x^2 - a^2}} = \ln|x + \sqrt{x^2 - a^2}| + C$ (for $|x| > a$)
- $\int \sqrt{x^2 - a^2} dx = \frac{x}{2}\sqrt{x^2 - a^2} - \frac{a^2}{2}\ln|x + \sqrt{x^2 - a^2}| + C$ (for $|x| > a$)
(Derived using substitution $x = a \sec \theta$, where $dx = a \sec \theta \tan \theta d\theta$ and $\sqrt{x^2-a^2} = \sqrt{a^2\sec^2\theta - a^2} = \sqrt{a^2(\sec^2\theta-1)} = \sqrt{a^2\tan^2\theta} = a|\tan\theta|$. The substitution $x=a\sec\theta$ is used for $\theta \in [0, \pi/2) \cup (\pi/2, \pi]$. The integral requires careful handling of the absolute value).
Alternative form using inverse hyperbolic cosine: $\text{arcosh}(x/a) + C$ (for $x \ge a$).
(Derived using substitution $x=a\sec\theta$).
Using Completing the Square to Match Standard Forms
The quadratic expressions under the square root in the standard formulas are simple ($a^2 \pm x^2$ or $x^2 \pm a^2$). However, many integrals involve more general quadratic expressions like $x^2 + bx + c$. To use the standard formulas, we often need to manipulate the quadratic expression by completing the square to transform it into one of the forms involving a squared term and a constant squared.
A quadratic $Ax^2+Bx+C$ (assuming $A=1$) can be written as $(x + B/2)^2 + (C - B^2/4)$. Let $u = x + B/2$ and $a^2 = |C - B^2/4|$. Then the expression under the root becomes related to $u^2 \pm a^2$ or $a^2 - u^2$. A substitution $u = x + B/2$ (with $du=dx$) transforms the integral into one of the standard forms in terms of $u$.
Example of using Completing the Square: Evaluate $\int \frac{dx}{\sqrt{x^2 + 6x + 13}}$.
- Identify the quadratic expression under the root: $x^2 + 6x + 13$.
- Complete the square for this quadratic:
- Take half of the coefficient of $x$ (which is 6), square it: $(6/2)^2 = 3^2 = 9$.
- Add and subtract 9 inside the expression: $x^2 + 6x + 9 - 9 + 13$.
- Group the perfect square trinomial: $(x^2 + 6x + 9) + (13 - 9) = (x+3)^2 + 4$.
- Rewrite the constant term as a square: $4 = 2^2$.
So, $x^2 + 6x + 13 = (x+3)^2 + 2^2$.
- Substitute this back into the integral: $\int \frac{dx}{\sqrt{(x+3)^2 + 2^2}}$.
- Use a substitution to match a standard form. Let $u = x+3$. Then $du = \frac{d}{dx}(x+3) dx = 1 dx = dx$. The integral becomes $\int \frac{du}{\sqrt{u^2 + 2^2}}$.
- This integral matches the standard form $\int \frac{du}{\sqrt{u^2 + a^2}}$ with $u$ as the variable and $a=2$.
- Apply the standard formula $\int \frac{du}{\sqrt{u^2 + a^2}} = \ln|u + \sqrt{u^2 + a^2}| + C$.
Result $= \ln|u + \sqrt{u^2 + 2^2}| + C$
- Substitute back $u = x+3$:
Result $= \ln|(x+3) + \sqrt{(x+3)^2 + 2^2}| + C$
- Simplify the expression under the square root back to the original quadratic: $(x+3)^2 + 2^2 = x^2 + 6x + 9 + 4 = x^2 + 6x + 13$.
Result $= \ln|(x+3) + \sqrt{x^2 + 6x + 13}| + C$.
Recognizing these standard forms and the technique of completing the square are essential for evaluating integrals involving quadratic expressions under square roots.
Integration of Other Standard Forms
Besides the integrals involving square roots of quadratics, there are other important standard integral forms, particularly those involving quadratic expressions in the denominator without a square root. These often lead to inverse trigonometric or logarithmic functions and are frequently solved using partial fractions or trigonometric substitution as the underlying method.
Standard Integrals involving $a^2 + x^2$ (without square root)
The integral of $\frac{1}{a^2 + x^2}$ is a standard result related to the derivative of the arctangent function.
- $\int \frac{dx}{a^2 + x^2} = \frac{1}{a} \arctan\left(\frac{x}{a}\right) + C$ (where $a \neq 0$)
Verification: $\frac{d}{dx}\left(\frac{1}{a} \arctan\left(\frac{x}{a}\right) + C\right) = \frac{1}{a} \frac{d}{dx}\left(\arctan\left(\frac{x}{a}\right)\right) + 0$. Using the Chain Rule on $\arctan(x/a)$: $\frac{d}{dx}\left(\arctan\left(\frac{x}{a}\right)\right) = \frac{1}{1+(x/a)^2} \cdot \frac{d}{dx}\left(\frac{x}{a}\right) = \frac{1}{1+x^2/a^2} \cdot \frac{1}{a} = \frac{1}{(a^2+x^2)/a^2} \cdot \frac{1}{a} = \frac{a^2}{a^2+x^2} \cdot \frac{1}{a} = \frac{a}{a^2+x^2}$. So, $\frac{1}{a} \cdot \frac{a}{a^2+x^2} = \frac{1}{a^2+x^2}$.
(This integral can also be derived using substitution $x = a \tan \theta$).
Standard Integrals involving $x^2 - a^2$ or $a^2 - x^2$ (without square root)
These forms involve rational functions whose denominators are difference of squares. They are typically solved using partial fraction decomposition.
- $\int \frac{dx}{x^2 - a^2} = \frac{1}{2a} \ln\left|\frac{x-a}{x+a}\right| + C$ (where $a \neq 0$)
- $\int \frac{dx}{a^2 - x^2} = \frac{1}{2a} \ln\left|\frac{a+x}{a-x}\right| + C$ (where $a \neq 0$)
Derivation using Partial Fractions:
The integrand is $\frac{1}{x^2 - a^2}$. Factor the denominator: $x^2 - a^2 = (x-a)(x+a)$.
Decompose into partial fractions: $\frac{1}{(x-a)(x+a)} = \frac{A}{x-a} + \frac{B}{x+a}$.
Multiply by $(x-a)(x+a)$: $1 = A(x+a) + B(x-a)$.
Substitute $x=a$: $1 = A(a+a) + B(a-a) \implies 1 = 2aA \implies A = \frac{1}{2a}$.
Substitute $x=-a$: $1 = A(-a+a) + B(-a-a) \implies 1 = -2aB \implies B = -\frac{1}{2a}$.
So, $\frac{1}{x^2 - a^2} = \frac{1/(2a)}{x-a} - \frac{1/(2a)}{x+a}$.
Now integrate term by term:
"$\int \frac{dx}{x^2 - a^2} = \int \left(\frac{1}{2a} \frac{1}{x-a} - \frac{1}{2a} \frac{1}{x+a}\right) dx$"
$= \frac{1}{2a} \int \frac{1}{x-a} dx - \frac{1}{2a} \int \frac{1}{x+a} dx$"
[Constant Multiple & Difference Rules]
Using $\int \frac{1}{u} du = \ln|u|$ (with $u=x-a$ and $u=x+a$ respectively):
$= \frac{1}{2a} \ln|x-a| - \frac{1}{2a} \ln|x+a| + C$"
Using the logarithm property $\ln M - \ln N = \ln(M/N)$:
$= \frac{1}{2a} \ln\left|\frac{x-a}{x+a}\right| + C$"
This completes the derivation.
Derivation: This is similar to the previous integral. Factor the denominator $a^2 - x^2 = (a-x)(a+x)$. Use partial fractions $\frac{1}{(a-x)(a+x)} = \frac{A}{a-x} + \frac{B}{a+x}$. Solve for $A$ and $B$ and integrate the terms. The result is $\frac{1}{2a} \ln|a+x| - \frac{1}{2a} \ln|a-x| + C = \frac{1}{2a} \ln\left|\frac{a+x}{a-x}\right| + C$.
General Quadratic Forms in the Denominator
Integrals involving more general quadratic expressions $ax^2+bx+c$ in the denominator (with or without square roots) can often be evaluated by transforming the quadratic expression into one of the standard forms involving a squared term and a constant squared. This is done by completing the square and then using a linear substitution.
For a quadratic $Ax^2+Bx+C$, complete the square: $A(x^2 + \frac{B}{A}x) + C = A\left((x + \frac{B}{2A})^2 - \frac{B^2}{4A^2}\right) + C = A(x + \frac{B}{2A})^2 - \frac{B^2}{4A} + C$. Let $u = x + \frac{B}{2A}$. Then the expression involves $u^2$ and a constant term. A linear substitution $u = x + \frac{B}{2A}$ (with $du = dx$ if $A=1$) allows you to use the standard formulas in terms of $u$.
- $\int \frac{dx}{ax^2+bx+c}$: Complete the square for $ax^2+bx+c$. This will result in a denominator of the form $A((x+p)^2 \pm q^2)$ or $A(q^2 - (x+p)^2)$. A substitution $u=x+p$ leads to an integral of the form $\int \frac{du}{u^2 \pm a^2}$ or $\int \frac{du}{a^2 - u^2}$, which can be solved using partial fractions or the formulas derived from them, or $\int \frac{du}{u^2+a^2}$ leading to arctan.
- $\int \frac{dx}{\sqrt{ax^2+bx+c}}$: Complete the square for $ax^2+bx+c$. This will result in a denominator of the form $\sqrt{A((x+p)^2 \pm q^2)}$ or $\sqrt{A(q^2 - (x+p)^2)}$. A substitution $u=x+p$ leads to an integral of the form $\int \frac{du}{\sqrt{u^2 \pm a^2}}$ or $\int \frac{du}{\sqrt{a^2 - u^2}}$, which match the standard forms involving square roots discussed in the previous section.
Forms involving Linear term over Quadratic/Sqrt(Quadratic)
Integrals where the numerator is a linear term $(px+q)$ and the denominator is a quadratic $(ax^2+bx+c)$ or the square root of a quadratic $\sqrt{ax^2+bx+c}$ are common. These integrals can be evaluated by splitting the numerator into two parts:
Consider $\int \frac{px+q}{ax^2+bx+c} dx$. The strategy is to rewrite the numerator $px+q$ as a multiple of the derivative of the denominator plus a constant. The derivative of the denominator $ax^2+bx+c$ is $2ax+b$.
- Express the numerator $px+q$ in the form $A \cdot (2ax+b) + B$. Set $px+q = A(2ax+b) + B$. Expand and equate coefficients of $x$ and constant terms to solve for $A$ and $B$.
$px+q = 2aAx + bA + B$
Equating coefficients of $x$: $p = 2aA \implies A = \frac{p}{2a}$.
Equating constant terms: $q = bA + B \implies B = q - bA = q - \frac{bp}{2a}$.
- Split the original integral into two parts using the rewritten numerator:
$\int \frac{px+q}{ax^2+bx+c} dx = \int \frac{A(2ax+b) + B}{ax^2+bx+c} dx = \int \frac{A(2ax+b)}{ax^2+bx+c} dx + \int \frac{B}{ax^2+bx+c} dx$
Similarly for $\int \frac{px+q}{\sqrt{ax^2+bx+c}} dx = \int \frac{A(2ax+b)}{\sqrt{ax^2+bx+c}} dx + \int \frac{B}{\sqrt{ax^2+bx+c}} dx$.
- Evaluate the two resulting integrals:
- The first integral $\int \frac{A(2ax+b)}{ax^2+bx+c} dx$ or $\int \frac{A(2ax+b)}{\sqrt{ax^2+bx+c}} dx$ can be solved using a simple substitution $u = ax^2+bx+c$. Then $du = (2ax+b) dx$. The integral becomes $\int \frac{A}{u} du$ or $\int \frac{A}{\sqrt{u}} du$, which are standard forms.
- The second integral $\int \frac{B}{ax^2+bx+c} dx$ or $\int \frac{B}{\sqrt{ax^2+bx+c}} dx$ is of the form constant over quadratic (or sqrt quadratic). This is solved by completing the square in the denominator and using the standard formulas discussed in this section and the previous one.
Mastering these techniques and recognizing which standard form an integral belongs to (or can be transformed into) is key to evaluating a wide variety of integrals.
Example 1. Evaluate $\int \frac{dx}{4 + x^2}$.
Answer:
We need to evaluate the indefinite integral $\int \frac{dx}{4 + x^2}$.
Observe the form of the integrand $\frac{1}{4 + x^2}$. This matches the standard integral form $\frac{1}{a^2 + x^2}$, where $a^2 = 4$.
From $a^2 = 4$, we find $a$ by taking the positive square root (since $a>0$ in the standard formula):
"$a = \sqrt{4} = 2$"
The standard formula for the integral of this form is:
"$\int \frac{dx}{a^2 + x^2} = \frac{1}{a} \arctan\left(\frac{x}{a}\right) + C$"
[Standard formula]
Substitute the value $a=2$ into this formula:
"$\int \frac{dx}{4 + x^2} = \frac{1}{2} \arctan\left(\frac{x}{2}\right) + C$"
[Substitute $a=2$]
The indefinite integral is $\frac{1}{2} \arctan\left(\frac{x}{2}\right) + C$.
Verification: Differentiate the result $\frac{1}{2} \arctan\left(\frac{x}{2}\right) + C$. Using the Chain Rule and the standard derivative of $\arctan u$ ($\frac{d}{du}(\arctan u) = \frac{1}{1+u^2}$):
$\frac{d}{dx}\left(\frac{1}{2} \arctan\left(\frac{x}{2}\right) + C\right) = \frac{1}{2} \frac{d}{dx}\left(\arctan\left(\frac{x}{2}\right)\right) + 0$
Let $u = x/2$. Then $\frac{du}{dx} = \frac{1}{2}$.
$\frac{d}{dx}\left(\arctan\left(\frac{x}{2}\right)\right) = \frac{1}{1 + (x/2)^2} \cdot \frac{d}{dx}\left(\frac{x}{2}\right) = \frac{1}{1 + x^2/4} \cdot \frac{1}{2}$
$= \frac{1}{(4+x^2)/4} \cdot \frac{1}{2} = \frac{4}{4+x^2} \cdot \frac{1}{2} = \frac{2}{4+x^2}$.
So, $\frac{1}{2} \cdot \frac{2}{4+x^2} = \frac{1}{4+x^2}$, which is the original integrand.